﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintOrder.aspx.cs" Inherits="SiteWorx_PrintOrder"
    Theme="Admin" StylesheetTheme="Admin" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Order</title>
</head>
<body onload="javascript: window.print();">
    <form id="frmPrintOrder" runat="server">
    <telerik:RadScriptManager ID="smPrintOrder" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="rssPrintOrder" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadFormDecorator ID="rfdPrintOrder" runat="server" Skin="Telerik" DecoratedControls="CheckBoxes, RadioButtons" />
    <div>
        <table cellpadding="5">
            <tr>
                <td>
                    <img src="../App_Themes/Default/Images/classiclegacy_logo.gif" />
                </td>
                <td valign="top">
                    <table>
                        <tr>
                            <td>
                                Order Number:
                            </td>
                            <td>
                                &nbsp;&nbsp;</td>
                            <td>
                                <asp:Label runat="server" ID="lblOrderNumber"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Order Status:
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label runat="server" ID="lblOrderStatus"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Order Date:
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label runat="server" ID="lblOrderDate"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Shipment Method:
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label runat="server" ID="lblShipmentMethod"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <fieldset>
                        <legend>Buyer Details</legend>
                        <table>
                            <tr>
                                <td valign="top">
                                    <asp:Label runat="server" ID="lblBuyerDetails"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <fieldset>
                        <legend>Billing Details</legend>
                        <table>
                            <tr>
                                <td valign="top">
                                    <asp:Label runat="server" ID="lblBillingAddressInfo"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
                <td>
                    <fieldset>
                        <legend>Shipping Details</legend>
                        <table>
                            <tr>
                                <td valign="top">
                                    <asp:Label runat="server" ID="lblShippingAddressInfo"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <telerik:RadGrid ID="rgvOrderItems" runat="server" AutoGenerateColumns="False" Width="504px"
                        Skin="Telerik" GridLines="None" ShowFooter="true" 
                        onitemdatabound="rgvOrderItems_ItemDataBound">
                        <HeaderContextMenu EnableTheming="True" Skin="Telerik">
                            <CollapseAnimation Duration="200" Type="OutQuint" />
                        </HeaderContextMenu>
                        <MasterTableView>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="Item Number" UniqueName="ItemNumber">
                                    <ItemTemplate>
                                        <asp:Label ID="lblItemNumber" runat="server" Text='<%# Eval("ItemNumber") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Product" UniqueName="ProductTitle">
                                    <ItemTemplate>
                                        <asp:Label ID="lblProductTitle" runat="server" Text='<%# Eval("ProductTitle") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Unit Price" UniqueName="UnitPrice">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblUnitPrice" Text='<%# Eval("UnitPrice", "{0:c}") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Quantity" UniqueName="Quantity">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblQuantity" Text='<%# Eval("Quantity") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Total" UniqueName="Total">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblTotal" Text='<%# Eval("Total", "{0:c}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label runat="server" ID="lblGrandTotal" Font-Bold="true"></asp:Label>
                                    </FooterTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView><FilterMenu EnableTheming="True" Skin="Telerik">
                            <CollapseAnimation Duration="200" Type="OutQuint" />
                        </FilterMenu>
                    </telerik:RadGrid>
                </td>
            </tr>
            <tr>
                <td>
                    <fieldset>
                        <legend>Payment Details</legend>
                        <table>
                            <tr valign="top">
                                <td>
                                    <asp:Label runat="server" ID="lblCardType"></asp:Label>
                                </td>
                            </tr>
                            <tr valign="top">
                                <td>
                                    <asp:Label runat="server" ID="lblNameOnCard"></asp:Label>
                                </td>
                            </tr>
                            <tr valign="middle">
                                <td valign="middle">
                                    <asp:Label runat="server" ID="lblCardNumber"></asp:Label>
                                </td>
                            </tr>
                            <tr valign="top">
                                <td>
                                    <asp:Label runat="server" ID="lblExpirationMonth"></asp:Label>/<asp:Label runat="server"
                                        ID="lblExpirationYear"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
